package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.OriginalArg;
import com.azier.kapacitor.script.arg.SingleQuotesArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class GroupBy extends AbstractMethod {
    private static final String name = "groupBy";
    /**
    Group the data by a set of dimensions. Can specify one time dimension.
    **/
    /**
    按一组维度对数据进行分组。可以指定一个时间维度。
    **/
    public GroupBy() {
        super(new ArrayList<>(), name);
        //
        this.args.add(new OriginalArg("*"));


    }
    public GroupBy(Object ...d) {
        super(new ArrayList<>(), name);
        //
        for(Object argf : d){
            this.args.add(new SingleQuotesArg(argf));
        }


    }
}
